bin/set-origin: Don't crash if origin has no refspec
authorColin Walters <walters@verbum.org>
Tue, 29 Apr 2025 22:31:16 +0000 (18:31 -0400)
committerColin Walters <walters@verbum.org>
Tue, 29 Apr 2025 22:33:29 +0000 (18:33 -0400)
commit832f3d7820388da1d73a3f4cc44ff9fbbe9b3bb1
tree7092c0d9859bcff52d23da00ecbe6f9e57199a32
parente8c39f6c89edc0c962e6c922dbb4995259d4c03b
bin/set-origin: Don't crash if origin has no refspec

e.g. if it's using a container instead.

Signed-off-by: Colin Walters <walters@verbum.org>
src/ostree/ot-admin-builtin-set-origin.c